<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>浮动-基本使用</title>
    <style>
        /* 特点:顶对齐,具备行内块显示特点;浮动的盒子会脱标 */
        .one {
            width: 100px;
            height: 100px;
            background-color: pink;

            float: left;
        }

        .two {
            width: 200px;
            height: 200px;
            background-color: green;

            /* float: left; */
            float: right;
        }
        
    </style>
</head>
<body>
    <div class="one"></div>
    <div class="two"></div>
    
</body>
</html>